package com.md;

import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class test {
@Test
//学生测试
public  void  t1(){
//    引入环境
    ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("bean.xml");

    student bean =(student) classPathXmlApplicationContext.getBean(student.class);
    teacher bean1 =(teacher) classPathXmlApplicationContext.getBean(teacher.class);
    bean1.getClassArr();
    System.out.println(bean1);
    //    学生测试
 bean.stuName();

}
}
